<!DOCTYPE html>
<html lang="zh-cmn-Hans">
    <head>
        <meta charset="utf-8"/>
        <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
            <title>
                {{$data['title']}}
            </title>
            <link href="{{ asset('/css/common/icon.css') }}" rel="stylesheet" type="text/css"/>
            <link href="{{ asset('/css/common/style.css') }}" rel="stylesheet" type="text/css"/>
            <link href="{{ asset('/css/staff/auth/login.css') }}" rel="stylesheet" type="text/css"/>
            <link href="{{ asset('/css/plugins/xcConfirm/xcConfirm.css') }}" rel="stylesheet" type="text/css"/>
        </meta>
    </head>
    <body>
        <div class="container">
            <article>
                <div id="loginBox">
                    <div class="locationBox">
                        <ul>
                            <li>
                                <a href="javascript:void(0)" onclick="location.reload();">
                                    <span class="icon-user">
                                    </span>
                                </a>
                            </li>
                            <li>
                            </li>
                            <li>
                                <a href="javascript:void(0)" onclick="location.reload();">
                                    <span class="icon-loop2">
                                    </span>
                                </a>
                            </li>
                        </ul>
                    </div>
                    <div class="clear">
                    </div>
                    <div class="inputBox">
                        <form action="" method="post">
                            <!-- <dl>
                              <dt>
                               <div class="title">CAS员工登录</div>
                              </dt>
                            </dl> -->
                            <dl>
                            <dt>
                               <div class="key">
                                 <span class="icon-location text-danger">
                                 </span>
                               </div>
                               <div class="value">
                                  <ul>
                                   @foreach($data['stations'] as $station)
                                    @if($station['id'] == $data['selected'])
                                       <li>
                                        <input checked id="station_id_{{$station['id']}}" type="radio" name="station_id" value="{{$station['code']}}" />
                                        <label for="station_id_{{$station['id']}}">{{$station['name']}}</label>
                                       </li>
                                    @else
                                        <li>
                                        <input id="station_id_{{$station['id']}}" type="radio" name="station_id" value="{{$station['code']}}" />
                                        <label for="station_id_{{$station['id']}}">{{$station['name']}}</label>
                                       </li>
                                    @endif
                                   @endforeach
                                  </ul>
                               </div>
                              </dt>
                                <dt>
                                    <div class="key">
                                        <span class="icon-mobile text-success">
                                        </span>
                                    </div>
                                    <div class="value">
                                        <input id="account" name="account" placeholder="请输入手机号码..." type="text" value="" />
                                    </div>
                                </dt>
                                <dt>
                                    <div class="key">
                                        <span class="icon-lock">
                                        </span>
                                    </div>
                                    <div class="value">
                                        <input id="password" name="password" placeholder="请输入登录密码..." type="password" value="" />
                                    </div>
                                </dt>
                            </dl>
                            <dl>
                                <dt>
                                    <div class="key">
                                        <span class="icon-key">
                                        </span>
                                    </div>
                                    <div class="value">
                                        <input id="_token" name="_token" placeholder="请输入登录密码..." type="text" value="{{ csrf_token() }}" />
                                    </div>
                                </dt>
                                <dt>
                                    <div class="key">
                                        <span class="icon-key">
                                        </span>
                                    </div>
                                    <div class="value">
                                        <input id="host" name="host" type="text" value="{{ $data['host'] }}" />
                                    </div>
                                </dt>
                                 <dt>
                                    <div class="key">
                                        <span class="icon-key">
                                        </span>
                                    </div>
                                    <div class="value">
                                        <input id="redirect_url" name="redirect_url" type="text" value="{{ $data['redirect_url'] }}" />
                                    </div>
                                </dt>
                                <dt>
                                    <div class="key">
                                        <span class="icon-key">
                                        </span>
                                    </div>
                                    <div class="value">
                                        <input id="check_login_url" name="check_login_url"  type="text" value="{{ route('staff.auth.login') }}" />
                                    </div>
                                </dt>
                            </dl>
                        </form>
                    </div>
                    <div class="clear">
                    </div>
                    <div class="buttonBox">
                        <dl>
                            <dt>
                                <button id="loginBtn">
                                    登  录
                                </button>
                            </dt>
                            <dd>
                                <a href="javascript:void(0);">
                                    <span class="icon-question">
                                    </span>
                                    帮助
                                </a>
                            </dd>
                            <dd>
                                <a href="javascript:void(0);">
                                    <span class="icon-key">
                                    </span>
                                    找回密码?
                                </a>
                            </dd>
                        </dl>
                    </div>
                </div>
            </article>
            <div class="clear">
            </div>
            <footer>
                <script  src="{{ asset('/js/lib/requirejs.min.js') }}" data-main="{{ asset('/js/app') }}"></script>
            </footer>
        </div>
    </body>
</html>
